package com.ruoyi.teacher.api;


import com.ruoyi.common.core.web.domain.AjaxResult;

import com.ruoyi.teacher.api.domain.TeaTeachers;
import com.ruoyi.teacher.api.factory.teacherFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "it-teacher",fallbackFactory = teacherFallback.class)
public interface teacherFeignClient {
    @PostMapping("/teachers")
    public AjaxResult add(@RequestBody TeaTeachers teaTeachers);
}
